﻿package  {
	
	import flash.display.MovieClip;
	import fl.transitions.Tween;
	import fl.transitions.easing.*;
	import fl.motion.Animator;
	public class TodayDuck extends MovieClip {
		
		public var duck_animator:Animator;
		public var point:int;
		public function TodayDuck() {
			// constructor cod
			
		}
		public function TodayDuck(pts:int) {
			// constructor code
			point=pts;
			
		}
		public function swim()
		{
			var duckSwim:Tween = new Tween(this,"x",None.easeNone,650,-100,4,true);
		}
		public function hit()
		{
			var duck_xml:XML =<Motion duration="5" xmlns="fl.motion.*" xmlns:geom="flash.geom.*" xmlns:filters="flash.filters.*">
	<source>
		<Source frameRate="24" x="492" y="284.05" scaleX="1" scaleY="1" rotation="0" elementType="movie clip" symbolName="ducks" class="TodayDuck">
			<dimensions>
				<geom:Rectangle left="-32" top="-61.5" width="66" height="61"/>
			</dimensions>
			<transformationPoint>
				<geom:Point x="0.5" y="0.5"/>
			</transformationPoint>
		</Source>
	</source>

	<Keyframe index="0" zDepth="0" tweenSnap="true">
		<tweens>
		</tweens>
	</Keyframe>

	<Keyframe index="4" zDepth="0" rotation="180">
		<color>
			<Color alphaMultiplier="0"/>
		</color>
	</Keyframe>
</Motion>;
duck_animator = new Animator(duck_xml,this);
			duck_animator.play();
		}
		
	}
	
}
